<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>我的订单</title>
  <meta name="renderer" content="webkit"/>
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
</head>
<body>
<div>
  <a href="{:url('User/my_order')}">全部订单</a>
  <a href="{:url('User/my_order')}?status=0">待付款</a>&nbsp;&nbsp;
  <a href="{:url('User/my_order')}?status=1">待发货</a>&nbsp;&nbsp;
  <a href="{:url('User/my_order')}?status=2">待收货</a>&nbsp;&nbsp;
  <a href="{:url('User/my_order')}?status=4">已完成</a>&nbsp;&nbsp;
</div>
{foreach name="list" item="vo"}
<div style="font-size:10px;">
  <p>{$vo.addtime|date="Y-m-d H:i",###}|订单号：{$vo.order_sn}&nbsp;&nbsp;订单金额：{$vo.final_amount}元</p>
  {foreach name="list_detail" item="v1"}
      {if condition="$v1.order_id eq $vo.id"}
          <div>
              <img src="{$v1.logo}" width="40px;" height="40px;">
              <span>{$v1.name}|{$v1.spec_detail}</span>
              <span>￥{$v1.spec_price}*{$v1.goods_num}</span>
          </div>
      {/if}
  {/foreach}
  <!--订单状态,0待支付，1待发货，2已确认，3商家已发货，4已收货，5申请退货，6退货完成，7订单完成，8订单已取消（超过30分钟未支付就置为取消状态）-->
  <div>
    {if condition="$vo.order_status eq 0"}
    <a href="{:url('User/create_repay_order')}?id={$vo.id}">支付订单</a>
    <a href="{:url('User/del_order')}?id={$vo.id}">删除订单</a>
    {elseif condition="$vo.order_status eq 1" /}
    <a href="{:url('User/cancel_order')}?id={$vo.id}">取消订单</a>
    {elseif condition="$vo.order_status eq 3" /}
    <a href="{:url('User/confirm_receive_order')}?id={$vo.id}">确认收货</a>
    {elseif condition="$vo.order_status eq 4" /}
    <a href="{:url('User/comment_order_goods')}?order_id={$vo.id}">去评价</a>
    {/if}
  </div>
</div>
{/foreach}
</body>
</html>